package com.logistics.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.logistics.TimeTemplate;
import com.logistics.dao.TimeTemplateDao;

import cn.easybuild.core.dao.AppBaseDao;
import cn.easybuild.core.service.StringPojoAppBaseServiceImpl;

@Service
public class TimeTemplateServiceImpl extends StringPojoAppBaseServiceImpl<TimeTemplate> implements TimeTemplateService {

	@Override
	public List<TimeTemplate> queryAvailable(boolean type) {
		return dao.queryAvailable(type);
	}
	
	private TimeTemplateDao dao;

	@Autowired
	public void setDao(TimeTemplateDao dao) {
		this.dao = dao;
	}

	@Override
	protected AppBaseDao<TimeTemplate, String> getDao() {
		return dao;
	}

	@Override
	public List<TimeTemplate> query() {
		return dao.query();
	}

}
